'''
使用camelot读取表格
'''

import camelot

# tables = camelot.read_pdf('编程语言.pdf')
tables = camelot.read_pdf('table.pdf')
# json, excel, html, sqlite  compress表示生成压缩包
tables.export('table.csv', f='csv', compress=True)
# print(tables[0].parsing_report)

# # to_json, to_excel, to_html, to_sqlite
# tables[0].to_csv('编程语言2.csv')
